<?xml version="1.0"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html><head><title>SASAPI</title><script src="../../../quicknav.js" type="text/javascript"></script><script><!--
document.quicknavBasePath="../../../index-files";
//--></script><link href="../../../style.css" title="JavaDoc" rel="stylesheet" type="text/css"/><link href="../../../unnatural.css" title="Unnatural" rel="alternate stylesheet" type="text/css"/><link href="../../../overview-summary.html" title="Overview" rel="top"/><meta name="generator" content="http://www.badgers-in-foil.co.uk/projects/as2api/"/></head><body><pre><span class="lineno" id="1">     1  </span><span class="comment doc">/**
<span class="lineno" id="2">     2  </span> * com.sekati.except.Exception
<span class="lineno" id="3">     3  </span> * @version 1.0.5
<span class="lineno" id="4">     4  </span> * @author jason m horwitz | sekati.com
<span class="lineno" id="5">     5  </span> * Copyright (C) 2007  jason m horwitz, Sekat LLC. All Rights Reserved.
<span class="lineno" id="6">     6  </span> * Released under the MIT License: http://www.opensource.org/licenses/mit-license.php
<span class="lineno" id="7">     7  </span> */</span>
<span class="lineno" id="8">     8  </span>
<span class="lineno" id="9">     9  </span><span class="key">import</span> com.sekati.except.Throwable;
<span class="lineno" id="10">    10  </span>
<span class="lineno" id="11">    11  </span><span class="comment doc">/**
<span class="lineno" id="12">    12  </span> * Core {@link Throwable} Exception error to be subclassed for error specificity and logging.
<span class="lineno" id="13">    13  </span> * {@code Usage:
<span class="lineno" id="14">    14  </span> * 	function test():Void {
<span class="lineno" id="15">    15  </span> * 		try {
<span class="lineno" id="16">    16  </span> * 			throw new Exception(this, "Test exception ErrorCode message", arguments);
<span class="lineno" id="17">    17  </span> * 		} catch (e:Exception) {
<span class="lineno" id="18">    18  </span> * 			Catcher.handle(e);
<span class="lineno" id="19">    19  </span> * 		}
<span class="lineno" id="20">    20  </span> * 	}
<span class="lineno" id="21">    21  </span> * 	test("hello world!", false, 13);
<span class="lineno" id="22">    22  </span> * }
<span class="lineno" id="23">    23  </span> * 
<span class="lineno" id="24">    24  </span> * @see {@link com.sekati.except.Catcher}
<span class="lineno" id="25">    25  </span> */</span>
<span class="lineno" id="26">    26  </span><span class="key">class</span> com.sekati.except.Exception <span class="key">extends</span> Throwable {
<span class="lineno" id="27">    27  </span>
<span class="lineno" id="28">    28  </span>	<span class="key">private</span> <span class="key">var</span> name:String = <span class="str_const">"Exception Error"</span>;
<span class="lineno" id="29">    29  </span>	<span class="key">private</span> <span class="key">var</span> type:String = <span class="str_const">"error"</span>;
<span class="lineno" id="30">    30  </span>
<span class="lineno" id="31">    31  </span>	<span class="comment doc">/**
<span class="lineno" id="32">    32  </span>	 * Exception Constructor
<span class="lineno" id="33">    33  </span>	 * @param thrower (Object) origin of the error
<span class="lineno" id="34">    34  </span>	 * @param message (String) error message to display
<span class="lineno" id="35">    35  </span>	 * @param stack (Array) thrower arguments stack
<span class="lineno" id="36">    36  </span>	 * @return Void
<span class="lineno" id="37">    37  </span>	 */</span>
<span class="lineno" id="38">    38  </span>	<span class="key">public</span> <span class="key">function</span> Exception(thrower:Object, message:String, stack:Array) {
<span class="lineno" id="39">    39  </span>		<span class="key">super</span>( thrower, message, stack );	
<span class="lineno" id="40">    40  </span>	}
<span class="lineno" id="41">    41  </span>}</pre><ul class="main_nav" id="main_nav"><li><a href="../../../overview-summary.html" title="Overview of SASAPI" class="button">Overview</a></li><li><a href="package-summary.html" title="Overview of package com.sekati.except" class="button">Package</a></li><li><a href="Exception.html" title="Detail of com.sekati.except.Exception API" class="button">Class</a></li><li><span class="button nav_current">Source</span></li><li><a href="../../../index-files/index.html" title="Alpabetical index of types and members" class="button">Index</a></li></ul><div class="footer"><a href="http://www.badgers-in-foil.co.uk/projects/as2api/" title="ActionScript 2 API Documentation Generator">as2api</a></div></body></html>